package com.guns;

import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.platform.win32.WinDef;

import com.guns.Demo.IPlateCallback;

import static com.guns.Demo.demo;

public interface JNADll extends Library {

	String strdir = System.getProperty("user.dir") + "\\ice_ipcsdk.dll";
    JNADll ICESDKInstance = (JNADll) Native.loadLibrary(strdir, JNADll.class);

    public void ICE_IPCSDK_Init();
    
    public int ICE_IPCSDK_OpenPreview(String ip, byte tcp, byte stream,
    		WinDef.HWND hWnd, IPlateCallback callback, int param);
    public void ICE_IPCSDK_Close(int hSDK);
    public void ICE_IPCSDK_EnableUTF8(int hSDK, int enable);
    public int ICE_IPCSDK_TriggerExt(int hSDK);
    public int ICE_IPCSDK_OpenGate(int hSDK);
   // public int ICE_IPCSDK_Broadcast(int hSDK,String code);

    public int ICE_IPCSDK_Fini();
}
